package org.example.day20240822.Film;

public class Main {
    public static void main(String[] args) {
        Movie movie1 = new ChildMovie("熊出没","children",2.0,1.5);
        Movie movie2 = new NewMovie("致青春","new_release",3.0,0.0);
        Movie movie3 = new NormalMovie("利刃出鞘","common",2.0,1.5);

        Record record1 = new Record(movie1,3);
        Record record2 = new Record(movie2,1);
        Record record3 = new Record(movie3,4);
        Record record4 = new Record(movie2,5);
        Record record5 = new Record(movie1,3);
        Record record6 = new Record(movie2,3);

        Customer customer1 = new Customer("zhangsan");
        customer1.addRecord(record1);
        customer1.addRecord(record2);
        Customer customer2 = new Customer("lisi");
        customer2.addRecord(record3);
        customer2.addRecord(record4);
        Customer customer3 = new Customer("wangwu");
        customer3.addRecord(record5);
        customer3.addRecord(record6);

        System.out.println(customer1.getBillInfo());
        System.out.println(customer2.getBillInfo());
        System.out.println(customer3.getBillInfo());
    }
}